//
//  InformationViewController.m
//  DianNaoWang
//
//  Created by dllo on 15/11/2.
//  Copyright © 2015年 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <sqlite3.h>
#import "FavoriteWapPage.h"
#import "ChannelNum.h"
@interface DataBaseManager : NSObject
//收藏页
+ (void)openDataBase;
+ (void)closeDataBase;
+ (void)creatTable;
+ (void)insertFavoriteWapByFavoriteWapPage:(FavoriteWapPage *)favoriteWap;
+ (void)deleteFavoriteWapByFavoriteWapPage:(FavoriteWapPage *)favoriteWap;
+ (NSMutableArray *)selectWap;
+ (NSMutableArray *)selectAllFavoriteByWapTitle:(NSString *)title;

//查报价里的最近浏览
+ (void)creatPriceTable;
+ (void)insertFavoritePricePage:(FavoriteWapPage *)favoriteWap;
+ (void)deleteFavoritePricePage:(FavoriteWapPage *)favoriteWap;
+ (NSMutableArray *)selectPrice;

//存放用户设置的首页频道
+ (void)creatChannelTable;
+ (void)insertChannel:(ChannelNum *)channel;
+ (void)deleteChannel:(ChannelNum *)channel;
+ (NSMutableArray *)selectChannel;

//存放用户设置的首页频道(删除的)
+ (void)creatDChannelTable;
+ (void)insertDChannel:(ChannelNum *)channel;
+ (void)deleteDChannel:(ChannelNum *)channel;
+ (NSMutableArray *)selectDChannel;
@end
